
## TOOL for 8127
# TOOL_DIR=/opt/ti_tools/linux_devkit/bin/
# CROSS_PREFIX=arm-arago-linux-gnueabi-

## TOOL for s2
TOOL_DIR=/usr/local/linaro-multilib-2013.09-gcc4.8/bin/
CROSS_PREFIX=arm-linux-gnueabihf-

OPENCV_PATH=../lib_ti8127/opencv-2.4.7/

CXX=$(TOOL_DIR)$(CROSS_PREFIX)g++
AR=$(TOOL_DIR)$(CROSS_PREFIX)ar crs

CXXFLAGS= -O3 -I$(OPENCV_PATH)include -I$(OPENCV_PATH)include/opencv -fPIC

objects= cascadedefin.o IntImage.o motion.o videofacedetect.o

libfacenew.a : $(objects)
	$(AR) $@ $^

%.o : %.c
	$(CXX) $(CXXFLAGS) -c -o $@ $^


clean : 
	rm -rf $(objects)  libfacenew.a
